/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Ordered List Style</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19606 (C-0-T19602-A19605-A19606-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getOrderedListStyle()
 * @model extendedMetaData="name='OrderedListStyle'"
 * @generated
 */
public enum OrderedListStyle implements Enumerator {
	/**
	 * The '<em><b>Arabic</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ARABIC_VALUE
	 * @generated
	 * @ordered
	 */
	ARABIC(0, "Arabic", "Arabic"),

	/**
	 * The '<em><b>Big Alpha</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BIG_ALPHA_VALUE
	 * @generated
	 * @ordered
	 */
	BIG_ALPHA(1, "BigAlpha", "BigAlpha"),

	/**
	 * The '<em><b>Big Roman</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BIG_ROMAN_VALUE
	 * @generated
	 * @ordered
	 */
	BIG_ROMAN(2, "BigRoman", "BigRoman"),

	/**
	 * The '<em><b>Little Alpha</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LITTLE_ALPHA_VALUE
	 * @generated
	 * @ordered
	 */
	LITTLE_ALPHA(3, "LittleAlpha", "LittleAlpha"),

	/**
	 * The '<em><b>Little Roman</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LITTLE_ROMAN_VALUE
	 * @generated
	 * @ordered
	 */
	LITTLE_ROMAN(4, "LittleRoman", "LittleRoman");

	/**
	 * The '<em><b>Arabic</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Arabic</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ARABIC
	 * @model name="Arabic"
	 * @generated
	 * @ordered
	 */
	public static final int ARABIC_VALUE = 0;

	/**
	 * The '<em><b>Big Alpha</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Big Alpha</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BIG_ALPHA
	 * @model name="BigAlpha"
	 * @generated
	 * @ordered
	 */
	public static final int BIG_ALPHA_VALUE = 1;

	/**
	 * The '<em><b>Big Roman</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Big Roman</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BIG_ROMAN
	 * @model name="BigRoman"
	 * @generated
	 * @ordered
	 */
	public static final int BIG_ROMAN_VALUE = 2;

	/**
	 * The '<em><b>Little Alpha</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Little Alpha</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LITTLE_ALPHA
	 * @model name="LittleAlpha"
	 * @generated
	 * @ordered
	 */
	public static final int LITTLE_ALPHA_VALUE = 3;

	/**
	 * The '<em><b>Little Roman</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Little Roman</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LITTLE_ROMAN
	 * @model name="LittleRoman"
	 * @generated
	 * @ordered
	 */
	public static final int LITTLE_ROMAN_VALUE = 4;

	/**
	 * An array of all the '<em><b>Ordered List Style</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OrderedListStyle[] VALUES_ARRAY =
		new OrderedListStyle[] {
			ARABIC,
			BIG_ALPHA,
			BIG_ROMAN,
			LITTLE_ALPHA,
			LITTLE_ROMAN,
		};

	/**
	 * A public read-only list of all the '<em><b>Ordered List Style</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OrderedListStyle> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Ordered List Style</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OrderedListStyle get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OrderedListStyle result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ordered List Style</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OrderedListStyle getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OrderedListStyle result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ordered List Style</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OrderedListStyle get(int value) {
		switch (value) {
			case ARABIC_VALUE: return ARABIC;
			case BIG_ALPHA_VALUE: return BIG_ALPHA;
			case BIG_ROMAN_VALUE: return BIG_ROMAN;
			case LITTLE_ALPHA_VALUE: return LITTLE_ALPHA;
			case LITTLE_ROMAN_VALUE: return LITTLE_ROMAN;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OrderedListStyle(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OrderedListStyle
